﻿using BCCommon.TMS.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.HorsemanFreightConfiguration
{
    public class HorsemanFreightConfigurationRequestDto
    {
        /// <summary>
        /// 基础骑手运费配置
        /// </summary>
        [Display(Name = "是否是基础骑手运费配置")]
        public bool IsBase { get; set; }
        /// <summary>
        /// 区县Id
        /// </summary>
        [Display(Name = "区县Id")]
        public long? CountyId { get; set; }
        /// <summary>
        /// 距离计算类型
        /// </summary>
        [Display(Name = "距离计算类型(默认、向上取整、向下取整)")]
        public DistanceCalculateType DistanceType { get; set; }
        /// <summary>
        /// 起步距离(米)
        /// </summary>
        [Display(Name = "起步距离(米)")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int StartDistance { get; set; }
        /// <summary>
        /// 起步重量(克)
        /// </summary>
        [Display(Name = "起步重量(克)")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int StartWeight { get; set; }
        /// <summary>
        /// 起步价格
        /// </summary>
        [Display(Name = "起步价格")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public decimal StartPrice { get; set; }
        /// <summary>
        /// 是否夜间配置
        /// </summary>
        [Display(Name = "是否夜间配置")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool IsNight { get; set; }
        /// <summary>
        /// 夜间起步距离
        /// </summary>
        [Display(Name = "夜间起步距离(米)")]
        public int NightStartDistance { get; set; }
        /// <summary>
        /// 夜间起步重量
        /// </summary>
        [Display(Name = "夜间起步重量(克)")]
        public int NightStartWeight { get; set; }
        /// <summary>
        /// 夜间起步价格
        /// </summary>
        [Display(Name = "夜间起步价格")]
        public decimal NightStartPrice { get; set; }
        /// <summary>
        /// 夜间服务费
        /// </summary>
        [Display(Name = "夜间服务费")]
        public decimal NightServiceFee { get; set; }
        /// <summary>
        /// 夜间开始时间
        /// </summary>
        [Display(Name = "夜间开始时间")]
        public string NightStartTime { get; set; }
        /// <summary>
        /// 夜间结束时间
        /// </summary>
        [Display(Name = "夜间结束时间")]
        public string NightEndTime { get; set; }
    }
}
